import assert = require('assert');

import * as React from '../expressExt/MyReact'
import {df} from "../expressExt/public/df";
import {exp} from "../expressExt/exp";

export const Views = {

    view1: (body: string) =>
        <p>{body}</p>,

    view2: (body: HTMLElement) =>
        <div>
            {body}
            <span class="bold">测试</span>
            {Views.view1("view2")}
        </div>,

    view3: () =>
        Views.view2(
            <div>
                view3
            </div>
        ),

}


//后端生成结果：<div ><span class="bold" >测试</span><p >view2</p></div>
console.log(Views.view3())
